package com.hollowlatte.manage.entity.vo;

import org.hibernate.validator.constraints.Range;

/**
 * @author Hollow Latte
 * @date 2021/5/13 22:34
 */
public class ScoreVO {
    private Long id;
    private Long studentId;
    private Long courseId;
    private String courseName;

    @Range(min = 0, max = 100)
    private Integer score;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCourseId() {
        return courseId;
    }

    public void setCourseId(Long courseId) {
        this.courseId = courseId;
    }

    public String getCourseName() {
        return courseName;
    }

    public void setCourseName(String courseName) {
        this.courseName = courseName;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public Long getStudentId() {
        return studentId;
    }

    public void setStudentId(Long studentId) {
        this.studentId = studentId;
    }

    @Override
    public String toString() {
        return "ScoreVO{" +
                "id=" + id +
                ", studentId=" + studentId +
                ", courseId=" + courseId +
                ", courseName='" + courseName + '\'' +
                ", score=" + score +
                '}';
    }
}
